<template>
	<view :style="styles" :class="className" @tap="onTap">
		<slot />
	</view>
</template>
<script>
	/**
	 * uiwu-view
	 * @property {Object} styles css样式同:style
	 * @property {String} className class名
	 * @event {Function} click 点击回馈事件
	 */
	export default {
		name: 'UiwuView',
		props: {
			styles: {
				default: ''
			},
			className: {
				default: ''
			}
		},
		data() {
			return {

			}
		},
		methods: {
			/**
			 * 元素点击反馈
			 */
			onTap() {
				this.$emit('click')
			}
		},
		created: function() {

		}
	}
</script>
<style>
</style>